package com.worldtolearn.offer.entity;

import java.io.Serializable;
import java.util.Date;

import javax.inject.Named;
import javax.persistence.Entity;

public class Offer implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int idOffer;
	// private Description descriptionOffer;
	private int rateOffer;
	private String labelOffer;
	private boolean isOnLine;
	private boolean isSticky;
	private boolean isArchived;
	private Date publicationStartDate;
	private Date publicationEndDate;
	public static int SEATS;
	
	private SupplierOffer supplierOffer;
	private Rate rate;
	
	public int getIdOffer() {
		return idOffer;
	}

	public void setIdOffer(int idOffer) {
		this.idOffer = idOffer;
	}

	// public Description getDescriptionOffer() {
	// return descriptionOffer;
	// }
	// public void setDescriptionOffer(Description descriptionOffer) {
	// this.descriptionOffer = descriptionOffer;
	// }
	// public Rate getRateOffer() {
	// return rateOffer;
	// }
	// public void setRateOffer(Rate rateOffer) {
	// this.rateOffer = rateOffer;
	// }

	public boolean isOnLine() {
		return isOnLine;
	}

	public String getLabelOffer() {
		return labelOffer;
	}

	public void setLabelOffer(String labelOffer) {
		this.labelOffer = labelOffer;
	}

	public void setOnLine(boolean isOnLine) {
		this.isOnLine = isOnLine;
	}

	public boolean isSticky() {
		return isSticky;
	}

	public void setSticky(boolean isSticky) {
		this.isSticky = isSticky;
	}

	public boolean isArchived() {
		return isArchived;
	}

	public void setArchived(boolean isArchived) {
		this.isArchived = isArchived;
	}

	public Date getPublicationStartDate() {
		return publicationStartDate;
	}

	public void setPublicationStartDate(Date publicationStartDate) {
		this.publicationStartDate = publicationStartDate;
	}

	public Date getPublicationEndDate() {
		return publicationEndDate;
	}

	public void setPublicationEndDate(Date publicationEndDate) {
		this.publicationEndDate = publicationEndDate;
	}

	public static int getSEATS() {
		return SEATS;
	}

	public static void setSEATS(int sEATS) {
		SEATS = sEATS;
	}

	public SupplierOffer getSupplierOffer() {
		return supplierOffer;
	}

	public void setSupplierOffer(SupplierOffer supplierOffer) {
		this.supplierOffer = supplierOffer;
	}

	public Offer() {
	}

	public int getRateOffer() {
		return rateOffer;
	}

	public void setRateOffer(int rateOffer) {
		this.rateOffer = rateOffer;
	}

	public Rate getRate() {
		return rate;
	}

	public void setRate(Rate rate) {
		this.rate = rate;
	}

	public Offer(String labelOffer, SupplierOffer supplierOffer, Rate rate) {
		this.labelOffer = labelOffer;
		this.supplierOffer = supplierOffer;
		this.rate = rate;
	}
	

}
